package com.ouyy.volunteerservice.volunteer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ouyy.volunteerservice.volunteer.domain.po.InfoNotice;
import org.apache.ibatis.annotations.Update;

public interface InfoNoticeMapper extends BaseMapper<InfoNotice> {
    // 更新点击数
    @Update("UPDATE info_notice SET views = views + 1 WHERE id = #{id}")
    int incrementClickCount(Integer id);
}
